package com.platform.service.impl;

import com.platform.dao.ExtractCoinDao;
import com.platform.entity.ExtractCoinEntity;
import com.platform.service.ExtractCoinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-03-21 16:39:12
 */
@Service("extractCoinService")
public class ExtractCoinServiceImpl implements ExtractCoinService {
    @Autowired
    private ExtractCoinDao extractCoinDao;

    @Override
    public ExtractCoinEntity queryObject(Long id) {
        return extractCoinDao.queryObject(id);
    }

    @Override
    public List<ExtractCoinEntity> queryList(Map<String, Object> map) {
        return extractCoinDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return extractCoinDao.queryTotal(map);
    }

    @Override
    public int save(ExtractCoinEntity extractCoin) {
        return extractCoinDao.save(extractCoin);
    }

    @Override
    public int update(ExtractCoinEntity extractCoin) {
        return extractCoinDao.update(extractCoin);
    }

    @Override
    public int delete(Long id) {
        return extractCoinDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return extractCoinDao.deleteBatch(ids);
    }

    @Override
    public BigDecimal queryCoins(Map<String, Object> map) {
        return extractCoinDao.queryCoins(map);
    }
}
